#include <iostream>
#include <unistd.h>
using namespace std;

extern char** environ;
int main()
{
    char* const env[] = 
    {
        "path=1234",
        "eilse",
        NULL
    };
    char* const myargv[] = {
        "ordertest",
        "-a",
        "-b",
        "-c",
        NULL
    };
    cout << "process begin" << endl;
    execve("./myproc", myargv,env);

    return 1;
}

//int main()
//{
//    cout << "process begin" << endl;
//    execlp("ls","ls","-a","-l",NULL);
//    cout << "process end" << endl;
//    return 0;
//}
